 var writerlogin;
 var shengaoLogin;
function writerLogin() {
    var outHtml = '  <div id="formArt" class="form-art" style="height: 340px;width: 500px;">\
        <div class="art-header">\
            <div class="content">\
                <span>读者登录</span>\
                <div class="art-delet fr" onclick="CloseWriterLogin()">\
                    <a href="javascript:CloseWriterLogin()"> <i class="iconfont icon-shanchu"></i></a>\
                </div>\
            </div>\
        </div>\
        <div class="art-content">\
            <div class="art-main">\
                <span>email：</span>\
                <input type="text" class="textinput">\
                <br>\
                <span>密&nbsp;&nbsp;码：</span>\
                <input type="passowrd" class="textinput">\
                <br> \
                <span>验证码：</span>\
                <input type="text" class="yanzheninput">\
                <img src="images/yanzheng.jpg" class="yanzhenimg">\
                <br>\
                <input type="button" value="登录" class="buttoninput">\
                <input type="button" name="" value="注册" class="buttoninput"><br>\
              	<a href="#">忘记密码</a>\
            </div>\
        </div>\
        <div style="clear: both;"></div>\
    </div>';

    /*var outHtml="testtt";*/
    writerlogin = layer.open({
    	id:'writerLogin',
        type: 1,
        title: false,
        closeBtn: 0,
        shadeClose: true,
        skin: 'yourclass',
       area: ['500px', '340px'],
        content: outHtml
    });

}
function CloseWriterLogin() {
	/*alert("reedd");*/
   layer.close(writerlogin);
    layer.closeAll();
}

function shengaoLogin1(){
    var ohtml='  <div id="shengaoLogin" class="form-art" style="height: 360px;width: 500px;">\
       <div class="art-header">\
           <div class="content">\
               <span>审稿登录</span>\
               <div class="art-delet fr" onclick="CloseshengaoLogin1()">\
                   <a href="javascript:void(0)"> <i class="iconfont icon-shanchu"></i></a>\
               </div>\
           </div>\
       </div>\
       <div class="art-content">\
           <div class="art-main">\
               <span>email：</span>\
               <input type="text" class="textinput">\
               <br>\
               <span>密&nbsp;&nbsp;码：</span>\
               <input type="passowrd" class="textinput">\
               <br>\
               <span>验证码：</span>\
               <input type="text" class="yanzheninput">\
               <img src="images/yanzheng.jpg" class="yanzhenimg">\
               <br>\
               <input type="button" value="登录" class="buttoninput">\
                <input type="button" name="" value="取消" class="buttoninput" onclick="CloseshengaoLogin1()"><br>\
               <br>\
           </div>\
       </div>\
       <div style="clear: both;"></div>\
   </div> '
    shengaoLogin = layer.open({
        id:'shengaoLogin',
        type: 1,
        title: false,
        closeBtn: 0,
        shadeClose: true,
        skin: 'yourclass',
        area: ['500px','360px'],
        content: ohtml
    });
   /* setSize();*/
}
function CloseshengaoLogin1() {
    /*alert("reedd");*/
    layer.close(shengaoLogin);
    layer.closeAll();

}
/*function setSize(){
  var width = $(".layui-layer2").width();
  var height = $(".layui-layer2").height();
  $("#shengaoLogin").css('widht',width);
}*/